package com.spring.demo9.module2;

import com.spring.demo9.module1.Service2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author vhans
 */
@Component
public class Service3 {

    @Autowired
    private Service1 service1;

    @Autowired
    private Service2 service2;

    public String m1() {
        return this.service2.m1();
    }

    public String m2() {
        return this.service1.m2();
    }

}
